package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitCourseRouter(Router *gin.RouterGroup)  {
	CourseRouter := Router.Group("course").Use(middleware.JWTAuth())
	{
		CourseRouter.GET("/getCourseList", v1.GetCourseList)
		CourseRouter.POST("/addCourse", v1.AddOneCourse)
		CourseRouter.PUT("/updateCourse", v1.UpdateCourse)
		CourseRouter.DELETE("/deleteCourse", v1.DeleteCourse)
	}
}

